package ${domainUpd.packageName};

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import java.io.Serializable;
import lombok.Data;

<#list tableClass.importList as fieldType>${"\n"}import ${fieldType};</#list>

/**
* ${tableClass.remark!}表更新对象
*/
@Data
public class ${tableClass.shortClassName}Upd implements Serializable {

<#list tableClass.allFields as field>
    /**
    * ${field.remark!}
    */<#if !field.nullable || field.jdbcType=="VARCHAR">${"\n    "}</#if><#if !field.nullable><#if field.jdbcType=="VARCHAR">@NotBlank(message="[${field.remark!}]不能为空")<#else>@NotNull(message="[${field.remark!}]不能为空")</#if></#if><#if field.jdbcType=="VARCHAR"><#if !field.nullable>${"\n    "}</#if>@Size(max= ${field.columnLength?c},message="编码长度不能超过${field.columnLength?c}")</#if>
    @Schema(description="${field.remark!}")<#if field.jdbcType=="VARCHAR"></#if>
    private ${field.shortTypeName} ${field.fieldName};
    
</#list>

}
